import { Component, OnInit } from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import { DefaultLanguageService } from '@services/default-language.service';
import { Router, NavigationExtras } from '@angular/router';
import { StatusBar } from '@ionic-native/status-bar/ngx';
@Component({
  selector: 'app-mycredit',
  templateUrl: './mycredit.page.html',
  styleUrls: ['./mycredit.page.scss'],
})
export class MycreditPage implements OnInit {

  constructor(
    private translate: TranslateService,
    private router: Router,
    private defaultLanguageService:DefaultLanguageService,
    private statusBar : StatusBar
  ) {
    let defultLanguage = this.defaultLanguageService.getDefaultLanguage();
    this.translate.setDefaultLang(defultLanguage);
    this.translate.use(defultLanguage);
    // this.statusBar.overlaysWebView(true);
  }

  ngOnInit() {
  }

  toNotification(){
    this.router.navigate(['/notifications']);
  }
}
